#! /bin/bash

jcc () {
  E_NOFILE=61
  read line <<< $(ls -t *.c 2>/dev/null) 
#  echo $line
#  echo ${#line}
  
  if [ ! -z  $line ]
  then 
       gcc -g -ggdb $line -o a.out
  else
       echo "No C sourse file" 1>&2
       exit $E_NOFILE
  fi
}

jcc
